<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
	<title>CSS3 3D转换</title>
    <script src="./prefixfree.js"></script>
	<style>
		body {
			margin: 0;
			padding: 0;
			background-color: #F7F7F7;
		}
		
		.perspective {
			width: 200px;
			height: 200px;
			margin: 100px auto;
			margin-top: 100px;
		}
		
		.rotateY {
			width: 200px;
			height: 200px;
			background-color: lightblue;
			transition: all 5s;
		}
		
		.perspective:hover .rotateY {
			/*
					沿着Y轴旋转90deg，
					沿着z轴移动100px
			*/
			transform: rotateY(90deg) translateZ(300px);
		}
	</style>
</head>

<body>
	<div class="perspective">
		<div class="rotateY"></div>
	</div>
</body>

</html>